<admintpl file="header_adminlte" />

</head>

<body>


	<div class="row js-check-wrap">
		<div class="col-xs-12">
			<ul class="nav nav-tabs" style="margin-bottom:10px;">
				<li>
					<a href="{:U('AdminWeibo/index')}">微博列表</a>
				</li>
				<li class="active">
					<a href="{:U('AdminWeibo/attachments')}">附件列表</a>
				</li>
			</ul>

			<div class="box-body table-responsive no-padding">
				
				<form class="well form-search" method="post" action="{:U('AdminWeibo/attachments')}">
					用户名:
					<input type="text" name="nickname" style="width: 300px;" value="{:I('request.nickname')}" placeholder="请输入用户名">
					发表时间:
					<input class="js-date" type="text" id="input-datetime" placeholder="2017-02-22" name="create_time" value="{:I('request.create_time')}"   style="width: 300px;"/>
					<input type="submit" class="btn btn-primary" value="搜索" />

					<a class="btn btn-danger" href="{:U('AdminWeibo/attachments')}">清空</a>
				</form>

				<form class="js-ajax-form" method="post">


					<table class="table table-hover table-bordered table-list">
						<thead>
							<tr>
								<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
								<th>附件ID</th>
								<th>微博ID</th>
								<th>用户名<!--用户ID--></th>
								<th>附件地址</th>
								<th>文本内容</th>
								<th>创建时间</th>	
								<th>操作</th>	
							</tr>
						</thead>
						

						<volist name="list" id="v">
						<tr>
							<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"  value="{$v.attachment_id}" title="ID:{$v.attachment_id}"></td>
							<td>{$v.attachment_id}</td>
							<td>{$v.weibo_id}</td>
							<td>{$v.nickname}<!--{$v.user_id}--></td>
							<td>
								<img src="{$v.url}" width="50" onclick="layer.open({
									type: 1,
									title: false,
									closeBtn: 0,
									area: '516px',
									skin: 'layui-layer-nobg', //没有背景色
									shadeClose: true,
									content: $('#{$v.attachment_id}img')
								});">
								<img src="{$v.url}" id="{$v.attachment_id}img" style="display: none;width:516px;"><!--大图-->
							</td>
							<td>{$v.content}</td>	
							<td>{$v.create_time|date="Y-m-d H:i:s",###}</td>
							<td>
								<a href="{:U('AdminWeibo/deleteAttachment','attachment_id='.$v['attachment_id'])}" class="label label-danger js-ajax-delete "><i class="fa fa-trash"></i> 删除</a>
							</td>
						</tr>
						</volist>


						<tfoot>
							<tr>
								<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
								<th>附件ID</th>
								<th>微博ID</th>
								<th>用户名<!--用户ID--></th>
								<th>附件地址</th>
								<th>文本内容</th>
								<th>创建时间</th>	
								<th>操作</th>	
							</tr>
						</tfoot>
					</table>

					<nav>
						<ul class="pagination">
							{$page}
						</ul>
					</nav>
				</form>
			</div>
			<!-- /.box-body -->
		</div>
		<!-- /.box -->
	</div>

	<script src="__PUBLIC__/js/common.js"></script>
	<script src="__PUBLIC__/js/newthink.js"></script>
</body>

</html>